<?php

class Controleur {
	
	var $this->page;
	var $this->header;
	var $this->footer;

	function __contruct($page='error404') {
		// to add : security
		$this->page 	= new $page();
		$this->header 	= new Header();
		$this->footer 	= new Footer();
	}

	function display() {
		header.display();
		page.display();
		footer.display();
	}

	function push($data) {
		page.push($data);
	}
}


?>
